using System.ComponentModel.DataAnnotations;

namespace MVCWeekOne.Models
{
    public class TeamModel
    {
        public string Id { get; set; } = string.Empty;
        
        [Required(ErrorMessage = "班组名称不能为空")]
        [Display(Name = "班组名称")]
        public string TeamName { get; set; } = string.Empty;
        
        [Required(ErrorMessage = "编组编码不能为空")]
        [Display(Name = "编组编码")]
        public string TeamCode { get; set; } = string.Empty;
        
        [Required(ErrorMessage = "班组类型不能为空")]
        [Display(Name = "班组类型")]
        public string TeamType { get; set; } = string.Empty;
        
        [Display(Name = "备注")]
        public string Remark { get; set; } = string.Empty;
        
        [Display(Name = "创建人")]
        public string Creator { get; set; } = string.Empty;
        
        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; }
        
        [Display(Name = "修改人")]
        public string Modifier { get; set; } = string.Empty;
        
        [Display(Name = "修改时间")]
        public DateTime? ModifyTime { get; set; }
    }

    public class TeamImportResult
    {
        public bool Success { get; set; }
        public string Message { get; set; } = string.Empty;
        public List<string> Errors { get; set; } = new List<string>();
        public int TotalCount { get; set; }
        public int SuccessCount { get; set; }
        public int FailCount { get; set; }
    }
}
